import server from '@dt/server/dt'

const api = {
  saRoleList: server.api().get('/sa-admin/api/v1/saRoleType/list'),
  saRoleTypeSync: server.api().get('/sa-admin/api/v1/saRoleType/sync'),
  saRoleTypeSave: server.api().post('/sa-admin/api/v1/saRoleType/save')
}

function getRoleList(params) {
  return api.saRoleList.fetch(params)
}

function saRoleTypeSync(info) {
  return api.saRoleTypeSync.fetch(info)
}

function saRoleTypeSave(info) {
  return api.saRoleTypeSave.fetch(info)
}

export default {
  getRoleList,
  saRoleTypeSync,
  saRoleTypeSave
}
